﻿@model IEnumerable<MyStore.Domain.Entities.Product>

@{
    ViewBag.Title = "List Products";
}

<h2>List Products</h2>

@foreach (var p in Model)
{
    <div class="item">
        <table>
            <tr>
                <td>Product Name:</td>
                <td>@p.ProductName</td>

            </tr>
            <tr>
                <td>Description: </td>
                <td>@p.Description</td>
            </tr>
            <tr>
                <td>Price:</td>
                <td>@p.Price.ToString("c")</td>
            </tr>
        </table>

    </div>
}
